package com.smedi.ismedi.authoritymanagement.core.application.query;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smedi.ismedi.authoritymanagement.core.application.command.RoleAssignmentListQueryCommand;
import com.smedi.ismedi.authoritymanagement.core.application.command.RoleListQueryCommand;
import com.smedi.ismedi.authoritymanagement.core.application.query.vo.RoleBasicVo;
import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.Role;
import com.smedi.ismedi.authoritymanagement.core.domain.aggregatemodel.RoleAssignment;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-11 9:23
 */
public interface RoleBasicQueryService {
    IPage getRoleBasicPaginationByRoleName(Long offset, Long pageSize, String roleName,String roleType);

    IPage getRoleMemberPaginationByLastNameAndUserNameAndMobile(Long offset, Long pageSize, Long roleId, String lastName, String userName, String mobile);

    List<RoleBasicVo> getRolesByPersonId(Long personId);

    List<Long> getPersonIdsByRoleId(Long roleId);

    List<Long> getPersonIdsByRoleId(List<Long> roleIds);

    List<RoleBasicVo> getRolesByRoleName(String roleName, boolean fuzzy, boolean showPersonId);

    List<Role> getRoleList(RoleListQueryCommand roleListQueryCommand);
    List<Role> getRoleListWithoutToken(RoleListQueryCommand roleListQueryCommand);

    List<RoleAssignment> getRoleAssignmentList(RoleAssignmentListQueryCommand roleAssignmentListQueryCommand);
    List<RoleAssignment> getRoleAssignmentListWithoutToken(RoleAssignmentListQueryCommand roleAssignmentListQueryCommand);
}
